import { Observable,from } from 'rxjs';
import { map } from 'rxjs/operators'

console.log(Date.now());
const observableNumber:Observable<number> = from([1,2,3])
const observableTimer:Observable<any> = observableNumber.pipe(map((x:number) => 10*x));

observableTimer.subscribe(
  {
    next:(value:any) => {
      console.log('[1]###next###');
      console.log(Date.now());
      console.log(typeof(value));
      console.log(value);
    },
    complete:() => {
      console.log('[1]###complete###');
    },
    error:(error:any) => {
      console.log('[1]###error###');
      console.log(error);
    }
  }
);